import request from '@/utils/request'

export function getProjectContentInfo(params) {  //根据子项目Id获取子项目验证内容的接口
  return request({
    url: '/projectContent',
    method: 'get',
    params
  })
}

export function getProjectContentPic(params) {  //获取图片
  return request({
    url: '/projectContent/picture',
    method: 'get',
    params
  })
}

export function getPlanModelPic(params) {  //获取实际验证测点分布图
  return request({
    url: '/planModel/pic',
    method: 'get',
    params
  })
}

export function getDistributionInfo(params) {  //查询当前布点列表信息
  return request({
    url: '/projectContent/distributioninfo',
    method: 'get',
    params
  })
}

export function DistributionUpdate(params) {  //  设置传感器编号对应的位置信息
  return request({
    url: '/projectContent/distribution/update',
    method: 'post',
    data: params
  })
}

export function projectContentIncubatorUpdate(params) {  // 根据子项目Id更新保温箱子项目验证内容的接口
  return request({
    url: '/projectContent/update/incubator',
    method: 'post',
    data: params
  })
}

export function projectContentTruckUpdate(params) {  // 根据子项目Id更新冷藏车子项目验证内容的接口
  return request({
    url: '/projectContent/update/truck',
    method: 'post',
    data: params
  })
}

export function projectContentAnalysis(params) {  // 根据子项目Id数据分析
  return request({
    url: '/projectContent/analysis',
    method: 'get',
    params
  })
}


export function updateProjectSensorPosition(params) {  //   更改分析传感器启用/停用接口
  return request({
    url: '/projectSensorPosition/update',
    method: 'post',
    data: params
  })
}


